package demon2;
/*
* 通过匿名内部类Thread子类创建线程对象
* */
public class MyThread_3 {
    Thread thread=new Thread(){
        @Override
        public void run() {
            System.out.println("使用匿名内部类Thread子类创建线程对象");
        }
    };
    public static void main(String[] args) {
        MyThread_3 myThread3=new MyThread_3();
        myThread3.thread.start();
    }
}
